//
//  RJCityTable.h
//  AirQuality
//
//  Created by Po on 15/3/12.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol RJCityTableDelegate <NSObject>

/**选取菜单时触发*/
- (void)didSelectedRow:(NSUInteger)rowNumber text:(NSString *)text;

@optional
/**显示和隐藏时触发*/
- (void)didPressCityBar:(BOOL)isShow;

@end

@interface RJCityTable : UIView

@property (retain, nonatomic)UIView * cityBar;
@property (assign, nonatomic)NSUInteger currentRow;           //当前选中行


@property (assign, nonatomic)id<RJCityTableDelegate> delegate;

- (void)showTable;
- (void)hideTable;

/**设置数据*/
- (void)setData:(NSArray *)data;

/**模拟点击*/
- (void)simulationPressCityWithRow:(NSUInteger)row;

/**设置展示隐藏*/
- (void)setViewFrame:(BOOL)isShow;

/**获取城市数组*/
- (NSArray *)getCitys;
@end
